package org.ala.distributed_transaction_commons.redis.datas;

import java.io.Serializable;

import org.ala.distributed_transaction_commons.DistributedTransactionRole;
import org.ala.distributed_transaction_commons.DistributedTransactionStatus;


/**
 * 分布式事务参与者
 * 
 * @author 骆毅(ala)
 * @date 2024年2月18日
 */
public class TransactionParticipant implements Serializable {
	private static final long serialVersionUID = 1L;

	
	/**
	 * 事务id
	 */
	protected String txId;
	/**
	 * 参与者id
	 */
	protected String participantId;
	/**
	 * 角色
	 */
	protected DistributedTransactionRole role;
	/**
	 * 业务类型
	 */
	protected String biz;
	/**
	 * 参与者当前状态
	 */
	protected DistributedTransactionStatus status;
	/**
	 * 参与者开始时间戳
	 */
	protected Long startTimestamp;
	
	
	public String getTxId() {
		return txId;
	}
	public void setTxId(String txId) {
		this.txId = txId;
	}
	public String getParticipantId() {
		return participantId;
	}
	public void setParticipantId(String participantId) {
		this.participantId = participantId;
	}
	public DistributedTransactionStatus getStatus() {
		return status;
	}
	public void setStatus(DistributedTransactionStatus status) {
		this.status = status;
	}
	public Long getStartTimestamp() {
		return startTimestamp;
	}
	public void setStartTimestamp(Long startTimestamp) {
		this.startTimestamp = startTimestamp;
	}
	public String getBiz() {
		return biz;
	}
	public void setBiz(String biz) {
		this.biz = biz;
	}
	public DistributedTransactionRole getRole() {
		return role;
	}
	public void setRole(DistributedTransactionRole role) {
		this.role = role;
	}
}
